<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
{eval $user=$this->user; $setting=$this->setting;}

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Manyou's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={MY_CHARSET}">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet"/>

</head>

<body>

<div id="append">
</div>

<div class="container">
            <!--{if isset($message)}-->
            <!--{eval $type=isset($type)?$type:'correctmsg'; }-->
            <div class="correctmsg"><p>{$message}</p></div>
            <!--{/if}-->
            <h3>添加礼品 <a href="index.php?admin_gift/add{$setting['seo_suffix']}" class="sgbtn">添加礼品</a><a href="index.php?admin_gift/addrange{$setting['seo_suffix']}" class="sgbtn">礼品价格区间</a><a href="index.php?admin_gift/note{$setting['seo_suffix']}" class="sgbtn">礼品公告</a><a href="index.php?admin_gift/log{$setting['seo_suffix']}" class="sgbtn">礼品兑换日志</a></h3>
            <br />
	<div class="mainbox nomargin">
		<form {if isset($gift)}action="index.php?admin_gift/edit{$setting['seo_suffix']}"{else}action="index.php?admin_gift/add{$setting['seo_suffix']}"{/if}  method="post" enctype="multipart/form-data">
			<table class="opt">
				<tr>
					<th colspan="2">礼品图片:</th>
				</tr>
				<tr>
					<td><input type="file" size="30" name="imgurl" /></td>
					<td>礼品图片请选jpg、gif、png格式</td>
				</tr>
                                <!--{if isset($gift['image'])}-->
                        	<tr>
					<td colspan="2"><img src="{SITE_URL}{$gift['image']}" width="80" height="80"/></td>
				</tr>
                                <!--{/if}-->
				<tr>
					<th colspan="2">礼品名称:</th>
				</tr>
				<tr>
					<td><input class="txt"  name="giftname" {if isset($gift['title'])} value="{$gift['title']}" {/if} /></td>
					<td>名称必填</td>
				</tr>
				<tr>
					<th colspan="2">需要金币:</th>
				</tr>
				<tr>
					<td><input class="txt" {if isset($gift['credit'])} value="{$gift['credit']}" {/if} name="giftprice" /></td>
					<td>兑换该礼品所需要的财富值</td>
				</tr>
				<tr>
					<th colspan="2">礼品描述:</th>
				</tr>
				<tr>
					<td><textarea class="area" name="giftdesrc"  style="height:100px;width:300px;">{if isset($gift['description'])}{$gift['description']}{/if}</textarea></td>
					<td valign="top">对于该礼品的简短说明</td>
				</tr>

			</table>
			<div class="opt">
                                {if isset($gift['id'])}
                                <input type="hidden" value="{$gift['id']}" name="id" />
                                <input type="hidden" value="{$gift['image']}" name="imgpath" />
                                {/if}
				<input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
		</form>
	</div>
</div>

</body>

</html>
